package bookstudytest.functioninterface;

import java.util.function.Supplier;

/**
 * @Author li.heng
 * @Date 2019/6/24 13
 * @Description:
 **/
public class SupplierDemo {
    public static void main(String[] args) {
        Supplier<SupplierDemo> supplier = SupplierDemo::new;
        SupplierDemo supplierDemo = supplier.get();
        Supplier<String> a = SupplierDemo::a;
        System.out.println(a.get());
    }
    public static String a(){
        return "aaaa";
    }
}
